﻿namespace WebQuestionnaire.Core
{
    using System;
    using NHibernate.Validator.Constraints;
    using SharpArch.Core;
    using SharpArch.Core.DomainModel;
    using System.Collections.Generic;

    public class Result : EntityWithTypedId<Guid>
    {
        public virtual DateTime DateCreated { set; get; }

        [DomainSignature]
        public virtual string UserName { set; get; }

        [IPAddress]
        [DomainSignature]
        public virtual string IpAddress { set; get; }

        [DomainSignature]
        public virtual Questionnaire Questionnaire { set; get; }

        public virtual IList<Answer> Answers { set; get; }
    
    }
}